﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Magicodes.Admin.SFOrders.Dto
{
    [AutoMapTo(typeof(SFOrder))]
    public class ImportSFOrderInputDto:EntityDto<long>
    {
        public string ServiceStationCode { get; set; }

        public WULINGAddresss.Dto.AddressListDto AddressListDto { get; set; }

    public string ShippingNumber { get; set; }

        public string AddressCoalescing { get; set; }
        public string ContentOfConsignment
        {
            get
            {
                return string.IsNullOrWhiteSpace(ShippingNumber) ? "汽车配件" : ShippingNumber;
            }
            set { }
        }
        /// <summary>
        /// 不填默认为1
        /// </summary>
        public decimal Weight { get; set; } = 1;

        /// <summary>
        /// 件数 不填默认为1
        /// </summary>
        public int NumberOfCases { get; set; } = 1;

        /// <summary>
        /// 数量 不填默认为1
        /// </summary>
        public decimal Quantity { get; set; } = 1;

        /// <summary>
        /// 快递产品类型
        /// </summary> 
        [Required]
        public string ExpressProductType { get; set; }

        /// <summary>
        /// 付款方式
        /// </summary>
        [Display(Name = "付款方式")]
        [Required]
        //[MaxLength(50)]
        public string PaymentMethod { get; set; }


        /// <summary>
        /// 月结卡号
        /// </summary>
        [Display(Name = "月结卡号")]
        [Required]
        public string MonthlyCardNumber { get; set; }

        public string CompanyName { get; set; }

        /// <summary>
        /// 是否报价
        /// </summary>
        [Display(Name = "是否报价")]
        public string WhetherTheValuation { get; set; }
        /// <summary>
        /// 声明价值
        /// </summary>
        [Display(Name = "声明价值")]
        public string DeclaredValue { get; set; }

        /// <summary>
        /// 是否自取
        /// </summary>
        [Display(Name = "是否自取")]
        public string WhetherComeUndone { get; set; }

        /// <summary>
        /// 行业型增值服务
        /// </summary>
        [Display(Name = "行业型增值服务")]
        public string IndustryOrientedValueAddedServices { get; set; }

        /// <summary>
        /// 备注1
        /// </summary>
        [Display(Name = "备注1")]
        public string Note1 { get; set; }

        /// <summary>
        /// 备注2
        /// </summary>
        [Display(Name = "备注2")]
        public string Note2 { get; set; }

        /// <summary>
        /// 备注3
        /// </summary>
        [Display(Name = "备注3")]
        public string Note3 { get; set; }
    }
}
